<!DOCTYPE html>
<html>
	<head>
		<meta charset='utf-8'>
		<title>Bus</title>
	</head>
	<body>
		<div id="bus"></div>
	</body>
	<script type="module">
		import Bus from './index.js'
		const bus = new Bus()
		bus.$on('getOnlineNum', (...args) => {
			// console.log({
			// 	args: args
			// })
			document.getElementById('bus').innerHTML = [...args]
			console.log(args, 'args')
		})
		bus.$emit('getOnlineNum', 31, 48)
		bus.$off('getOnlineNum')
		console.log(bus, 'bus')
	</script>
</html>
